package br.jus.tjpe.bean;

import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

public class LoginBean {
	
	public String login() {
		return "principal";
	}

	public String logout() {
		ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
		((HttpSession) externalContext.getSession(false)).invalidate();
        return "index";
	}

}
